package org.lmw.mm.utils;
import com.jfinal.render.FreeMarkerRender;
import com.jfinal.render.IMainRenderFactory;
import com.jfinal.render.Render;

/**
 * 设置freemark输出根路径
 * MyRenderFactory
 * limengwei
 * 2014-3-31 下午7:18:02
 * @version 1.0.0
 */
public class MyRenderFactory implements IMainRenderFactory {
	String tplPath="";
	public MyRenderFactory(String tplPath) {
		this.tplPath=tplPath;
	}
	
	@Override
	public Render getRender(String view) {
		return new FreeMarkerRender(tplPath+view);
	}
	
	@Override
	public String getViewExtension() {
		return null;
	}
    

}